﻿#region << 文件说明 >>

/*----------------------------------------------------------------
 * 命名空间：Vampirewal.Core.WindoSetting
 * 唯一标识：b35a8b10-d30c-45a1-869a-42657576d405
 * 文件名：NotifyWindowSetting
 *
 * 创建者：杨程
 * 电子邮箱：235160615@qq.com
 * 创建时间：2023/9/25 19:08:06
 * 版本：V1.0.0
 * 描述：
 *
 * ----------------------------------------------------------------
 * 修改人：
 * 时间：
 * 修改说明：
 *
 * 版本：V1.0.1
 *----------------------------------------------------------------*/

#endregion << 文件说明 >>

namespace Vampirewal.Core.WindoSetting;

/// <summary>
/// Notify窗体配置
/// </summary>
public class NotifyWindowSetting
{
    /// <summary>
    /// Notify窗体标题
    /// </summary>
    public string NotifyTitle { get; set; } = "系统通知";

    /// <summary>
    /// 显示窗体
    /// </summary>
    public IUcViewBase UcView { get; set; }

    /// <summary>
    /// 窗体宽度
    /// </summary>
    public double WindowWidth { get; set; } = 300d;

    /// <summary>
    /// 窗体高度
    /// </summary>
    public double WindowHeight { get; set; } = 450d;

    /// <summary>
    /// 窗体背景色
    /// </summary>
    public string Background { get; set; } = "#2F3437";

    /// <summary>
    /// 窗体前景色
    /// </summary>
    public string Foreground { get; set; } = "#EBEBEB";

    /// <summary>
    /// 标题文字大小
    /// </summary>
    public int TitleFontSize { get; set; } = 12;

    /// <summary>
    /// 窗体边框颜色
    /// </summary>
    public string WindowBorderBrush { get; set; } = "#3F4447";

    private int _DelayCloseTime = 0;

    /// <summary>
    /// 延迟关闭时间(默认以秒计算)
    /// <para>默认等于0，大于0即认为开启延迟关闭</para>
    /// </summary>
    public int DelayCloseTime
    {
        get
        {
            if (_DelayCloseTime < 0)
            {
                _DelayCloseTime = 0;
            }

            return _DelayCloseTime;
        }
        set
        {
            _DelayCloseTime = value;
        }
    }

    /// <summary>
    /// 需要传输的数据
    /// </summary>
    public object PassData { get; set; }
}